﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
/// Summary description for doimk
/// </summary>
public class doimk
{
    public string TenDangNhap { get; set; }
    public string MatKhau { get; set; }
    AccessData ac = new AccessData();
    public void DMK(doimk MK)
	{
        SqlConnection con = ac.GetConnect();
        con.Open();
        SqlCommand cmd = new SqlCommand("Doi_MK", con);
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.Add("@TenDangNhap", SqlDbType.NVarChar).Value = MK.TenDangNhap;
        cmd.Parameters.Add("@MatKhau", SqlDbType.NVarChar).Value = MK.MatKhau;
        cmd.ExecuteNonQuery();
        con.Close();
        cmd.Dispose();
	}
}
